package smartcase.common.util;

import com.fasterxml.jackson.databind.ObjectMapper;

public class JsonUtil {
  private static ObjectMapper mapper = new ObjectMapper();

  public static String toJsonString(Object value) {
    try {
      return mapper.writeValueAsString(value);
    } catch (Exception e) {
      e.printStackTrace();
      return "";
    }
  }
}
